package database.demo;

import android.content.ContentValues;

/**
 * Store information about a important contact.
 */
public class ImportantContant {
	private String ID;
	private String name;
	private String role;
	private String phone;
	private String email;
	private String address;


	// full constructor
	public ImportantContant(String ID, String name, String role,
			String phone, String email, String address) {
		super();
		this.ID = ID;
		this.name = name;
		this.role = role;
		this.phone = phone;
		this.email = email;
		this.address = address;
	}

	// partial constructor
	public ImportantContant(String ID) {
		super();
		this.ID = ID;
	}

	// empty constructor
	public ImportantContant() {
		super();
	}

	public String getID() {
		return ID;
	}

	public String getName() {
		return name;
	}

	public String getRole() {
		return role;
	}

	public String getPhone() {
		return phone;
	}

	public String getEmail() {
		return email;
	}

	public String getAddress() {
		return address;
	}

	

	public ContentValues getValues() {
		ContentValues values = new ContentValues();
		values.put(DataBaseWrapperImportant.IMPORTANT_ID, ID);
		values.put(DataBaseWrapperImportant.IMPORTANT_NAME, name);
		values.put(DataBaseWrapperImportant.IMPORTANT_ROLE, role);
		values.put(DataBaseWrapperImportant.IMPORTANT_PHONE, phone);
		values.put(DataBaseWrapperImportant.IMPORTANT_EMAIL, email);
		values.put(DataBaseWrapperImportant.IMPORTANT_ADDRESS, address);

		return values;
	}

	public void setID(String iD) {
		ID = iD;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public void setAddress(String address) {
		this.address = address;
	}
}
